package com.ruoyi.shop.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.shop.mapper.DshopMapper;
import com.ruoyi.shop.domain.Dshop;
import com.ruoyi.shop.service.IDshopService;

/**
 * 标签商品中间Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-06-20
 */
@Service
public class DshopServiceImpl implements IDshopService 
{
    @Autowired
    private DshopMapper dshopMapper;

    /**
     * 查询标签商品中间
     * 
     * @param dshopId 标签商品中间主键
     * @return 标签商品中间
     */
    @Override
    public Dshop selectDshopByDshopId(Long dshopId)
    {
        return dshopMapper.selectDshopByDshopId(dshopId);
    }

    /**
     * 查询标签商品中间列表
     * 
     * @param dshop 标签商品中间
     * @return 标签商品中间
     */
    @Override
    public List<Dshop> selectDshopList(Dshop dshop)
    {
        return dshopMapper.selectDshopList(dshop);
    }

    /**
     * 新增标签商品中间
     * 
     * @param dshop 标签商品中间
     * @return 结果
     */
    @Override
    public int insertDshop(Dshop dshop)
    {
        return dshopMapper.insertDshop(dshop);
    }

    /**
     * 修改标签商品中间
     * 
     * @param dshop 标签商品中间
     * @return 结果
     */
    @Override
    public int updateDshop(Dshop dshop)
    {
        return dshopMapper.updateDshop(dshop);
    }

    /**
     * 批量删除标签商品中间
     * 
     * @param dshopIds 需要删除的标签商品中间主键
     * @return 结果
     */
    @Override
    public int deleteDshopByDshopIds(Long[] dshopIds)
    {
        return dshopMapper.deleteDshopByDshopIds(dshopIds);
    }

    /**
     * 删除标签商品中间信息
     * 
     * @param dshopId 标签商品中间主键
     * @return 结果
     */
    @Override
    public int deleteDshopByDshopId(Long dshopId)
    {
        return dshopMapper.deleteDshopByDshopId(dshopId);
    }
}
